package com.xxjh.auth.common.enums;

/**
 * @author CHENCHEN
 * @description
 * @company 新兴际华科技(天津)有限公司
 * @create 2024-11-20 13:50
 */
public enum ResultCode {

    SUCCESS(200, "SUCCESS..."),
    FAIL(400, "FAIL..."),
    UNAUTHORIZED(401, "401 Unauthorized..."),
    AUTHORIZED_TIMEOUT(4001, "4001 Your authentication token has expired. Please renew it to proceed..."),
    SERVERERROR(500, "500 Internal Server Error...");

    private final int code;

    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
